const state = {
    host: '',
    dir: '',
    path: '',
}

const mutations = {
    SET_HOST: (state, host) => {
        state.host = host
    },
    SET_DIR: (state, dir) => {
        state.dir = dir
    },
    SET_PATH: (state, path) => {
        state.path = path
    },
}

const actions = {
    setHost({ commit }, host) {
        commit('SET_HOST', host)
    },
    setDir({ commit }, dir) {
        commit('SET_DIR', dir)
    },
    setPath({ commit }, path) {
        commit('SET_PATH', path)
    },
}
export default {
    namespaced: true,
    state,
    mutations,
    actions
}